@Midway.MidwayModule({
    code: "UserInfo",
    template: require('./view.html')
})
class UserInfoModule extends CommonClass {
    constructor() {
        super();
    }

    $launch() {
        console.log("this is message from user info");
        const self = this;
        this.addEventListener('ConfirmClick', ConstVariable.PresenterEventType.IC_PLAYER_EVENT, function (data) {
            console.log("receive event:", data);
            const name = self.View.querySelector(".js_name");
            name.value = data.Hello;
        }, this);
        this.addEventListener('CancelClick', ConstVariable.PresenterEventType.IC_PLAYER_EVENT, function (data) {
            console.log("receive event:", data);
            const password = self.View.querySelector(".js_password");
            password.value = "";
        }, this);
    }

}